package com.stylefeng.guns.modular.sort.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 商品分类表
 * </p>
 *
 * @author BrunoLi123
 * @since 2018-05-13
 */
@TableName("sort")
public class Sort extends Model<Sort> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 父级分类ID
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 分类排序
     */
    private Integer order;
    @TableField("picture_url")
    private String pictureUrl;
    private String url;
    /**
     * 备注
     */
    private String postscript;
    /**
     * 是否逻辑删除
     */
    private Integer deleted;
    /**
     * 修改者
     */
    private String modifier;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;
    /**
     * 创建者
     */
    private String creator;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPostscript() {
        return postscript;
    }

    public void setPostscript(String postscript) {
        this.postscript = postscript;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Sort{" +
        "id=" + id +

        ", parentId=" + parentId +
        ", name=" + name +
        ", order=" + order +
        ", pictureUrl=" + pictureUrl +
        ", url=" + url +
        ", postscript=" + postscript +
        ", deleted=" + deleted +
        ", modifier=" + modifier +
        ", modifyTime=" + modifyTime +
        ", creator=" + creator +
        ", createTime=" + createTime +
        "}";
    }
}
